package cn.dfiy.demo.entity;

public class Print {
    private  Iink ink;
    private ipaper ipaper;

    public Print() {
    }

    public Print(Iink ink,ipaper ipaper) {
        this.ink = ink;
        this.ipaper = ipaper;
    }

    public Iink getInk() {
        return ink;
    }

    public void setInk(Iink ink) {
        this.ink = ink;
    }

    public ipaper getIpaper() {
        return ipaper;
    }

    public void setIpaper(ipaper ipaper) {
        this.ipaper = ipaper;
    }

    @Override
    public String toString() {
        return "使用"+ink.color()+"在"+ipaper.size()+"上打印";
    }
}
